﻿using BaBaoFan.Modifier.Model;
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BaBaoFan.Modifier.Models
{
    public class NavigationInfoCreateOrUpdateViewModel
    {
        public NavigationInfoCreateOrUpdateViewModel()
        {
            AvaliableClasses = new List<SelectListItem>() { new SelectListItem { Text = "空", Value = "0" } };
            AvaliableParents = new List<SelectListItem>() { new SelectListItem { Text = "顶级", Value = "0" } };
            AvaliableNavigationColumns = new List<SelectListItem>();
        }
        public List<SelectListItem> AvaliableClasses { get; set; }
        public List<SelectListItem> AvaliableParents { get; set; }
        public IEnumerable<SelectListItem> AvaliableNavigationColumns { get; set; }
        public int Id { get; set; }
        public string Name { get; set; }
        public string Logo { get; set; }
        public string Description { get; set; }
        public string Link { get; set; }
        /// <summary>
        /// 父id   0-顶级  其余为父id
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 显示状态  1--显示  2--隐藏
        /// </summary>
        public PlayState PlayState { get; set; }
        /// <summary>
        /// 首页显示   0--不显示  1--显示
        /// </summary>
        public HomeState HomeState { get; set; }
        public int[] NavigationColumnIds { get; set; }
        public string Weixin { get; set; }
        public bool Check { get; set; }

    }
}
